package cn.glc.daily.life.model.vo.page;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * 分页查询参数转换
 *
 * @author simon
 * @date 2021/4/13 12:00
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
public class PageConvert {

    /**
     * baomidou,原生分页参数转换
     *
     * @param t
     * @param <T>
     * @return
     */
    public static <T extends Page> Page convert2PageQuery(T t) {
        return new Page(t.getCurrent(), t.getSize());
    }

}
